/**
 * PartA.java
 * 
 * Write a program that will:
 *   print “x must be 3” if the value of x is 3
 *   print “x is NOT 3” , if the value of x is greater than 3
 *   print “This runs no matter what”, always.
 *   Ensure that each statement is printed on a separate line
 *   Use the switch/case/default statement
 *   Code the value of x in the program itself
 *
 * @author: John Thomason
 *    Date: Nov 13, 2008 / 7:16:47 AM
 *   Class: CS222 Java Programming II
 */


/**
 * PartA Class
 */
public class PartA {

  /**
   * Application Entry Point
   * @param args The command line arguments
   */
  public static void main(String[] args) {
    
    //Local Var
    Integer x = 3;
    
    //Required Switch
    switch(x){
      case 3:
        prt("x must be 3\n");
        break;
      default:
        prt("x is NOT 3\n");
    }//switch()
    
    //Always print this message
    prt("This runs no matter what\n");
    
  }//main()
  
  /**
   * The the formatted message string
   * @param msg The formatted message string to print
   */
  public static void prt(String msg){
    System.out.print(msg);
  }//prt()

}//end PartA class
